package alp.starcode.nudtportal.framework.constant;

import alp.starcode.common.constant.BaseResultDataConstant;
import alp.starcode.common.constant.model.ResultModel;

/**
 * 自定义异常状态码，一个字母后跟5位数字标识符
 * 项目自定义状态码格式为一个字母加5数值
 *
 * @author: lw
 * @date: 2021/11/17 17:14
 */
public interface CodeConst extends BaseResultDataConstant {

    //用户相关状态码
    ResultModel OPERATION_FAILED = new ResultModel("B00201", "操作失败");
    ResultModel ACCOUNT_FAILED = new ResultModel("B00202", "一卡通同步/激活失败");
    ResultModel FUNCTION_UNAVAILABLE = new ResultModel("B00203", "功能不可用");
    ResultModel SIGN_ERROR = new ResultModel("B00204", "签名验证失败");

    ResultModel STREAM_SUBSCRIBE_ERROR = new ResultModel("B00205", "流水订阅失败！");
    ResultModel GET_SUBSCRIBE_ERROR = new ResultModel("B00206", "获取订阅情况失败！");
    ResultModel GET_WALLET_ERROR = new ResultModel("B00207", "获取钱包失败！");

    ResultModel IS_NOT_CURRENT = new ResultModel("B00208", "不是当前一卡通绑定微信，无法修改");
    ResultModel APPLET_CERTIFICATION_ERROR = new ResultModel("B00209", "用户认证失败");
    ResultModel API_CALL_ERROR = new ResultModel("B00210", "服务调用异常");
    ResultModel IS_BIND_NULL = new ResultModel("B00211","必填参数为空！");
    ResultModel USER_IS_NULL = new ResultModel("B00212","当前用户不存在");

    ResultModel USER_CUSTOM_MODULE_FAIL = new ResultModel("A00101","获取用户自定义模块失败！");
    ResultModel HOME_MODULE_FAIL = new ResultModel("A00102","获取首页模块失败！");
    ResultModel MODULE_FAIL = new ResultModel("A00103","获取应用失败！");
    ResultModel PERSONAL_CENTER_FAIL = new ResultModel("A00104","获取个人中心应用失败！");
    ResultModel GET_FEEDBACK_LIST = new ResultModel("A00105","获取意见反馈列表失败！");
    ResultModel GET_FEEDBACK = new ResultModel("A00106","获取意见反馈失败！");
}
